Class HostResourceTypeBase<T>
Base class for host-provided resource types.
Assembly: WaaS.Core.dll
View Source
Declaration
public abstract class HostResourceTypeBase<T> : IHostResourceType<T>, IResourceType, IType, ISortedExportable, ISorted
Implements:
WaaS.ComponentModel.Binding.IHostResourceType<T>, WaaS.ComponentModel.Runtime.IResourceType, WaaS.ComponentModel.Runtime.IType, WaaS.ComponentModel.Runtime.ISortedExportable, WaaS.ComponentModel.Runtime.ISorted
Properties
Instance
View Source
Declaration
public virtual IInstance? Instance { get; }
Methods
ToHostResource(uint)
View Source
Declaration
public T ToHostResource(uint resourceId)
Returns
<T>
Parameters
Type | Name |
---|---|
System.UInt32 | resourceId |
AllocateResourceId(T)
View Source
Declaration
public uint AllocateResourceId(T hostResource)
Returns
System.UInt32
Parameters
Type | Name |
---|---|
<T> | hostResource |
New(uint)
View Source
Declaration
public uint New(uint rep)
Returns
System.UInt32
Parameters
Type | Name |
---|---|
System.UInt32 | rep |
Drop(uint)
View Source
Declaration
public void Drop(uint index)
Parameters
Type | Name |
---|---|
System.UInt32 | index |
Rep(uint)
View Source
Declaration
public uint Rep(uint index)
Returns
System.UInt32
Parameters
Type | Name |
---|---|
System.UInt32 | index |
ValidateEquals(IType)
View Source
Declaration
public bool ValidateEquals(IType other)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
WaaS.ComponentModel.Runtime.IType | other |
Wrap(T)
View Source
Declaration
public Owned Wrap(T value)
Returns
WaaS.ComponentModel.Runtime.Owned
Parameters
Type | Name |
---|---|
<T> | value |
Unwrap(Borrowed)
View Source
Declaration
public T Unwrap(Borrowed handle)
Returns
<T>
Parameters
Type | Name |
---|---|
WaaS.ComponentModel.Runtime.Borrowed | handle |
Unwrap(Owned, bool)
View Source
Declaration
public T Unwrap(Owned handle, bool moveOut = true)
Returns
<T>
Parameters
Type | Name |
---|---|
WaaS.ComponentModel.Runtime.Owned | handle |
System.Boolean | moveOut |
OnDrop(T)
View Source
Declaration
protected virtual void OnDrop(T value)
Parameters
Type | Name |
---|---|
<T> | value |
Reset()
View Source
Declaration
public void Reset()